package com.example.t410.mapper;

import com.example.t410.entity.Modules;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface ModulesMapper {
    @Select("select * from xinqingapp.modules where user_id=0 and status = 1")
    List<Modules> getAllDefault();
    @Select("select * from xinqingapp.modules where id=#{id}")
    Modules getById(Long id);
}
